﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterBackEnd.Master" AutoEventWireup="true" CodeFile="ReportInGame.aspx.cs" Inherits="Pages_Report_ReportInGame" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="/Js/Pages/Report/rptInGame.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#txtFromDate").datepicker({
                changeMonth: true,
                changeYear: true
            });
            $("#txtToDate").datepicker({
                changeMonth: true,
                changeYear: true
            });

            var today = new Date();
            var m_day = today.getDate();
            var m_month = today.getMonth() + 1;
            var m_year = today.getFullYear();
            if (m_day < 10) m_day = '0' + m_day;
            if (m_month < 10) m_month = '0' + m_month;

            var m_fromDay = m_day;
            var m_fromMonth = m_month;
            var m_fromYear = m_year - 1;
            if (m_fromDay > 28) {
                m_fromDay = 28;
            }

            var m_fromDate = m_fromDay + "/" + m_fromMonth + "/" + m_fromYear;
            var m_toDate = m_day + "/" + m_month + "/" + m_year;

            $("#txtFromDate").val(m_fromDate);
            $("#txtToDate").val(m_toDate);
            Pages_Report_ReportInGame.documentReady();
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server">
    <div class="tabs_wrapper">
        <ul class="tabs">
            <li class="selected tab_link"><span class="tab_link">Thống kê trong game</span> </li>
        </ul>
    </div>
    <div class="container_data" id="divSearch">
        <div class="header_container">
            <span class="container_text">Tìm kiếm</span>
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="form form_3cols">
                <div class="content_info">
                    <ul>
                        <li class="content_info_left">Từ ngày:</li>
                        <li class="content_info_right" style="width: 160px">
                            <input type="text" id="txtFromDate" class="input_text"/></li>
                         <li class="content_info_left">Đến ngày:</li>
                        <li class="content_info_right" style="width: 160px">
                            <input type="text" id="txtToDate" class="input_text"/></li>
                        <li class="content_info_left">Loại giao dịch:</li>
                        <li class="content_info_right">
                            <select id="ddlTypeTransaction">
                                <option value="-1">Tất cả</option>
                                <option value="1">Đặt cược</option>
                                <option value="2">Nhận thưởng</option>
                                <option value="3">Đổi bạc lấy vàng</option>
                            </select></li>
                        <li class="content_info_left">Kết quả:</li>
                        <li class="content_info_right">
                            <select id="ddlResult">
                                <option value="-1">Tất cả</option>
                                <option value="1">Thắng</option>
                                <option value="2">Thua</option>
                            </select></li>

                        <div style="clear: both">
                        </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                             <li class="content_info_left">Loại tiền:</li>
                        <li class="content_info_right">
                            <select id="ddlTypeMoney">
                                <option value="-1">Tất cả</option>
                                <option value="1">Vàng</option>
                                <option value="2">Bạc</option>
                            </select></li>
                            <li class="content_info_left">Account Id:</li>
                        <li class="content_info_right">
                            <input type="text" id="txtAccountId" class="input_text" /></li>
                        <li class="content_info_left">Tên tài khoản:</li>
                        <li class="content_info_right">
                            <input type="text" id="txtAccountName" class="input_text" /></li>                       
                        <div style="clear: both">
                        </div>
                    </ul>
                </div>                
                <div style="clear: both;">
                </div>
            </div>
            <div class="form_btn" align="left">
                <input id="btnSearch" class="button" value="Tìm kiếm" type="button" /></div>
        </div>
    </div>
    <div class="container_data">
        <div class="header_container">
            <span class="container_text">Thống kê trong game<span class="text_blue" style="font-size: 10px;
                padding-left: 3px; font-weight: normal" id="spTotalAdmin"></span></span>
            <div class="adminBox_Control">
                <div class="action" id="btnShowmap" style="background: url(/images/icon_add.gif) no-repeat scroll 3px 3px #C1E4FF;">
                    Biểu đồ</div>
                 <div class="action" id="btnShowList" style="background: url(/images/icon_close.gif) no-repeat scroll 3px 3px #C1E4FF;">
                    Quay lại</div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="detailprice " style="padding: 2px;" id="divListInGame">
               <table cellspacing="0" cellpadding="0" class="cssgrid" style="margin: 10px">
                    <tbody>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng vàng đặt cược</span></td>
                            <td id="tdTotalAuBet"></td>
                            <td style="background: none !important; width: 50px; border: none !important"></td>
                            <td align="left"><span class="norB">Tổng vàng trả thưỏng</span></td>
                            <td id="tdTotalAuBonus"></td>                      
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng bac đặt cược</span></td>
                            <td id="tdTotalAgBet"></td>
                            <td style="background: none !important; border: none !important"></td>
                            <td align="left"><span class="norB">Tổng bạc trả thưởng</span></td>
                            <td id="tdTotalAgBonus"></td>                
                        </tr>                       
                    </tbody>
                </table>
                	
                	

                <div id="divInGame">
                    
                    
                </div>
                <div id="divInGamePaging" class="content_paging" style="float: left;">
                </div>
                <div style="clear: both;">
                </div>
            </div>
            <div style="padding: 2px; display: none" id="divMapInGame">
                
            </div>
        </div>
    </div>
</asp:Content>

